package edu.upc.dew.util;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import javax.servlet.ServletOutputStream;

public class ServletFilterOutputStream extends ServletOutputStream {
    private DataOutputStream stream;
    
    public ServletFilterOutputStream(OutputStream output) {
        stream = new DataOutputStream(output);
    }
    
    @Override
    public void write(int b) throws IOException  {
        stream.write(b);
    }
    
    @Override
    public void write(byte[] b) throws IOException  {
        stream.write(b);
    }
    
    @Override
    public void write(byte[] b, int off, int len) throws IOException  {
        stream.write(b, off, len);
    }
}
